package org.jeecg.modules.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 评论
 * @Author: jeecg-boot
 * @Date:   2020-11-12
 * @Version: V1.0
 */
@Data
@TableName("phil_comment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="phil_comment对象", description="评论")
public class PhilComment implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**文章id值*/
	@Excel(name = "文章id值", width = 15)
    @ApiModelProperty(value = "文章id值")
    private String articleId;
	/**评论人id*/
	@Excel(name = "评论人id", width = 15)
    @ApiModelProperty(value = "评论人id")
    private String commentatorId;
	/**评论内容*/
	@Excel(name = "评论内容", width = 15)
    @ApiModelProperty(value = "评论内容")
    private String commentContent;
	/**是否置顶*/
//	@Excel(name = "是否置顶", width = 15, dictTable = "ishomepage", dicText = "", dicCode = "")
//	@Dict(dictTable = "ishomepage", dicText = "", dicCode = "")
    @ApiModelProperty(value = "是否置顶")
    private Integer isTop;
	/**点赞数*/
	@Excel(name = "点赞数", width = 15)
    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;
	/**逻辑删除 1删除 0未删除*/
    @ApiModelProperty(value = "逻辑删除 1删除 0未删除 2发布")
    private Integer status;

    /**类型，0是知识，1是文章，默认0*/
    @ApiModelProperty(value = "类型，0是知识，1是文章，默认0")
    private Integer type;
}
